
<script>
export default {
  name: 'app',

  data() {
    return {
      visible: false,
    }
  },
  methods: {
    handleClick() {
      this.$messageBox({
        title: '1',
        message: '2222',
        showIcon: true,
        renderContent() {
          return (
            <div>
              <h4>我是render函数渲染出来的标题</h4>
              <p>内容</p>
              <test />
            </div>
          )
        },
      })
        .then(res => console.log('点击的是确定'))
        .catch(err => console.log('点击的是取消'))
    },
    handleClicktoast() {
      this.Toast('点击了 toast')
    },
  },
  render() {
    return (
      <div id="app">
        <h4>肥仔</h4>
        <button on-click={this.handleClick}>messageBox </button>
        <button on-click={this.handleClicktoast}>toast </button>
      </div>
    )
  },
}
</script>
